Optimal. Leaf size=467 \[ \frac {2 \sqrt {2} g \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (f+g x)}{2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )} \sqrt {1-\frac {2 c (f+g x)}{2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}} \Pi \left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)};\sin ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right )|\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {c} e \sqrt {a+b x+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.60, antiderivative size = 467, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {943, 718, 419, 934, 169, 538, 537} \[ \frac {2 \sqrt {2} g \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (f+g x)}{2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )} \sqrt {1-\frac {2 c (f+g x)}{2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}} \Pi \left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)};\sin ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right )|\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {c} e \sqrt {a+b x+c x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 169
Rule 419
Rule 537
Rule 538
Rule 718
Rule 934
Rule 943
Rubi steps
\begin {align*} \int \frac {\sqrt {f+g x}}{(d+e x) \sqrt {a+b x+c x^2}} \, dx &=\frac {g \int \frac {1}{\sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{e}+\frac {(e f-d g) \int \frac {1}{(d+e x) \sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{e}\\ &=\frac {\left ((e f-d g) \sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x}\right ) \int \frac {1}{\sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x} (d+e x) \sqrt {f+g x}} \, dx}{e \sqrt {a+b x+c x^2}}+\frac {\left (2 \sqrt {2} \sqrt {b^2-4 a c} g \sqrt {\frac {c (f+g x)}{2 c f-b g-\sqrt {b^2-4 a c} g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 \sqrt {b^2-4 a c} g x^2}{2 c f-b g-\sqrt {b^2-4 a c} g}}} \, dx,x,\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}\\ &=\frac {2 \sqrt {2} \sqrt {b^2-4 a c} g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\left (2 (e f-d g) \sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}} \sqrt {b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}}} \, dx,x,\sqrt {f+g x}\right )}{e \sqrt {a+b x+c x^2}}\\ &=\frac {2 \sqrt {2} \sqrt {b^2-4 a c} g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\left (2 (e f-d g) \sqrt {b+\sqrt {b^2-4 a c}+2 c x} \sqrt {1+\frac {2 c (f+g x)}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}} \sqrt {1+\frac {2 c x^2}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}} \, dx,x,\sqrt {f+g x}\right )}{e \sqrt {a+b x+c x^2}}\\ &=\frac {2 \sqrt {2} \sqrt {b^2-4 a c} g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\left (2 (e f-d g) \sqrt {1+\frac {2 c (f+g x)}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}} \sqrt {1+\frac {2 c (f+g x)}{\left (b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {1+\frac {2 c x^2}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}} \sqrt {1+\frac {2 c x^2}{\left (b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}} \, dx,x,\sqrt {f+g x}\right )}{e \sqrt {a+b x+c x^2}}\\ &=\frac {2 \sqrt {2} \sqrt {b^2-4 a c} g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{c e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \Pi \left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)};\sin ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right )|\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {c} e \sqrt {a+b x+c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.62, size = 379, normalized size = 0.81 \[ -\frac {i \sqrt {2} \sqrt {\frac {g \left (\sqrt {b^2-4 a c}+b+2 c x\right )}{g \left (\sqrt {b^2-4 a c}+b\right )-2 c f}} \sqrt {1-\frac {2 c (f+g x)}{g \left (\sqrt {b^2-4 a c}-b\right )+2 c f}} \left (F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{\left (b+\sqrt {b^2-4 a c}\right ) g-2 c f}} \sqrt {f+g x}\right )|\frac {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}{2 c f+\left (\sqrt {b^2-4 a c}-b\right ) g}\right )-\Pi \left (\frac {e \left (2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g\right )}{2 c (e f-d g)};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{\left (b+\sqrt {b^2-4 a c}\right ) g-2 c f}} \sqrt {f+g x}\right )|\frac {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}{2 c f+\left (\sqrt {b^2-4 a c}-b\right ) g}\right )\right )}{e \sqrt {a+x (b+c x)} \sqrt {\frac {c}{g \left (\sqrt {b^2-4 a c}+b\right )-2 c f}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {g x + f}}{\sqrt {c x^{2} + b x + a} {\left (e x + d\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.04, size = 834, normalized size = 1.79 \[ \frac {\left (-b g \EllipticF \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )+b g \EllipticPi \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \frac {\left (b g -2 c f +\sqrt {-4 a c +b^{2}}\, g \right ) e}{2 \left (d g -e f \right ) c}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )+2 c f \EllipticF \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )-2 c f \EllipticPi \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \frac {\left (b g -2 c f +\sqrt {-4 a c +b^{2}}\, g \right ) e}{2 \left (d g -e f \right ) c}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )-\sqrt {-4 a c +b^{2}}\, g \EllipticF \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )+\sqrt {-4 a c +b^{2}}\, g \EllipticPi \left (\sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}, \frac {\left (b g -2 c f +\sqrt {-4 a c +b^{2}}\, g \right ) e}{2 \left (d g -e f \right ) c}, \sqrt {-\frac {b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\right )\right ) \sqrt {g x +f}\, \sqrt {c \,x^{2}+b x +a}\, \sqrt {2}\, \sqrt {-\frac {\left (g x +f \right ) c}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}\, \sqrt {\frac {\left (-2 c x -b +\sqrt {-4 a c +b^{2}}\right ) g}{-b g +2 c f +\sqrt {-4 a c +b^{2}}\, g}}\, \sqrt {\frac {\left (2 c x +b +\sqrt {-4 a c +b^{2}}\right ) g}{b g -2 c f +\sqrt {-4 a c +b^{2}}\, g}}}{\left (c g \,x^{3}+b g \,x^{2}+c f \,x^{2}+a g x +b f x +a f \right ) c e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {g x + f}}{\sqrt {c x^{2} + b x + a} {\left (e x + d\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {f+g\,x}}{\left (d+e\,x\right )\,\sqrt {c\,x^2+b\,x+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {f + g x}}{\left (d + e x\right ) \sqrt {a + b x + c x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________